﻿<%@ Page Language="C#" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="webapp4U.UI.WebMaster_Default" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

<uc:Title runat="server" ResourceKey='HitCouter_Title'/>

<div>

<asp:UpdatePanel ID="UserUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>

<table border="0" width="100px" cellpadding="0"  cellspacing="0" align="center">
   
    <tr>
        <td style="padding-top:5pt;" align="center">
            <asp:GridView runat="server" Width="700px" HorizontalAlign="Center" 
                ID="GridViewItem" 
                AutoGenerateColumns="false" 
                AllowPaging="True" 
                AllowSorting="True" 
                PagerSettings-Mode="NumericFirstLast"
                GridLines="none" PageSize="15">
                <Columns>
                    <asp:TemplateField HeaderText="Trang truy cập" 
                        HeaderStyle-Width="300" ItemStyle-Width="300" ItemStyle-Height="40"
                        HeaderStyle-HorizontalAlign="Left"
                        ItemStyle-HorizontalAlign ="left">
                        <ItemTemplate>
                            <%# Eval("PageName")%>
                        </ItemTemplate>
                    </asp:TemplateField>                    
                
                    <asp:TemplateField HeaderText="Url" 
                        HeaderStyle-Width="300" ItemStyle-Width="300" ItemStyle-Height="40"
                        HeaderStyle-HorizontalAlign="Left"
                        ItemStyle-HorizontalAlign ="left">
                        <ItemTemplate>
                            <%# Eval("PageUrl")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="Số lượt truy cập" 
                        HeaderStyle-HorizontalAlign="Left"
                        ItemStyle-HorizontalAlign ="left">
                        <ItemTemplate>
                               <%#Eval("Counter")%>
                        </ItemTemplate>
                    </asp:TemplateField>                    
                    
                </Columns>
                <EmptyDataTemplate>
                    <table align="center" width="100%" border="0" bgcolor="#ffffcc" bordercolorlight="#0099cc"  bordercolor="#0099cc">
                        <tr>
                            <td height="50" align="center">
                                <div align="center" id="EmptyData"><%=ResourceManager.GetString("DataEmpty")%></div>
                            </td>   
                        </tr>
                    </table>
                </EmptyDataTemplate>
            </asp:GridView>            
        </td>
    </tr>
            
    </table>

    </ContentTemplate>
</asp:UpdatePanel>
     
    
</div>

   
</asp:Content>

